package com.aspose.cells.a.d.a.a;

import java.awt.Color;
import java.io.IOException;

public class zaf extends ze {
   private int a;
   private int b;
   private int c;
   private Color d;
   private int e;
   private float[] f;

   public zaf(int var1, int var2, Color var3, float[] var4) {
      this.a = var1;
      this.b = var2;
      if (var4 != null && var4.length != 0) {
         this.a |= 7;
         this.c = 2;
         this.e = 8;
      } else {
         this.c = 0;
         this.e = 0;
      }

      this.d = var3;
      this.f = var4;
   }

   public void a(com.aspose.cells.a.d.a.zb var1) throws IOException {
      var1.b(this.a);
      var1.b(this.b);
      var1.d(this.c);
      var1.a(this.d);
      var1.e(this.e);
      if (this.f != null && this.f.length != 0) {
         var1.b(this.f.length);

         for(int var3 = 0; var3 < this.f.length; ++var3) {
            int var2 = (int)(this.f[var3] * 1.0F * 20.0F);
            if (var2 < 1) {
               var2 = 1;
            }

            var1.b(var2);
         }
      } else {
         var1.b(0);
         var1.b(0);
      }

   }
}
